package com.wang.hello.qrcode.test;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

import junit.framework.TestCase;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;

import com.wang.hello.qrcode.QrCode;

public class QrCodeTestCase extends TestCase{
	public transient final Log logger = LogFactory.getLog(getClass());

	@Test
	public void testQrEncoder()
	{
		try {
			FileOutputStream out = new FileOutputStream("C:\\Temp\\data\\qrcode.png");
			QrCode qrCode = new QrCode();
			qrCode.encoder(out, "ryerson university");
			out.close();
		} 
		catch (FileNotFoundException e) 
		{
			e.printStackTrace();
		}
		catch (IOException e) {
			e.printStackTrace();
		}
	}
}
